<template>
	<view class="ljapp quick">
		<view class="header">
			<image class="pic" src="/pagesL/static/quick/icon_pic.png" mode="aspectFill"></image>
			<view class="tip">
				<text>20s</text>快速匹配专业医生
			</view>
		</view>
		<view class="content">
			<navigator hover-class="none" url="/pagesL/quick/diag?type=tw" class="item u-flex u-flex-y-center">
				<image class="licon" src="/pagesL/static/quick/group_636.png" mode="aspectFill"></image>
				<view class="u-flex-fill">
					<view class="tit">
						图文问诊
						<text class="price">
							{{parseFloat(quick_consultation_money||0)<=0?'免费':'￥'+quick_consultation_money+'元/次'}}
						</text>
					</view>
					<view class="con">和医生一对一在线图片文字沟通病情</view>
				</view>
				<image class="ricon" src="/pagesL/static/quick/icon_back.png" mode="aspectFill"></image>
			</navigator>
			<navigator hover-class="none" url="/pagesL/quick/diag?type=sp" class="item u-flex u-flex-y-center">
				<image class="licon" src="/pagesL/static/quick/group_719.png" mode="aspectFill"></image>
				<view class="u-flex-fill">
					<view class="tit">
						视频问诊
						<text class="price">
							{{parseFloat(quick_consultation_viedo_money||0)<=0?'免费':'￥'+quick_consultation_viedo_money+'元/次'}}
						</text>
					</view>
					<view class="con">和医生一对一在线视频沟通病情</view>
				</view>
				<image class="ricon" src="/pagesL/static/quick/icon_back.png" mode="aspectFill"></image>
			</navigator>
			<navigator hover-class="none" url="/pagesL/quick/diagReport" class="item u-flex u-flex-y-center">
				<image class="licon" src="/pagesL/static/quick/group_750.png" mode="aspectFill"></image>
				<view class="u-flex-fill">
					<view class="tit">
						报告解读
						<text class="price">
						{{parseFloat(quick_consultation_report_money||0)<=0?'免费':'￥'+quick_consultation_report_money+'元/次'}}
						</text>
					</view>
					<view class="con">和医生一对一在线图片文字沟通病情</view>
				</view>
				<image class="ricon" src="/pagesL/static/quick/icon_back.png" mode="aspectFill"></image>
			</navigator>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				quick_consultation_money: 0,
				quick_consultation_viedo_money: 0,
				quick_consultation_report_money: 0,
			}
		},
		onShow() {
			this.init()
		},
		methods: {
			init(){
				this.$Http({
					url: 'consultationConsult',
					data: {}
				}).then(res => {
					if (res.code == 1) {
						this.quick_consultation_money = parseFloat(res.data.quick_consultation_money).toFixed(2)
						this.quick_consultation_viedo_money = parseFloat(res.data.quick_consultation_viedo_money).toFixed(2)
						this.quick_consultation_report_money = parseFloat(res.data.quick_consultation_report_money).toFixed(2)
					}
				})
			}
		}
	}
</script>

<style lang="less">
	@import '@/pagesL/style.less';
</style>
